package com.family.gmall.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.family.gmall.model.product.entity.BaseSaleAttr;
import com.family.gmall.model.product.entity.SpuInfo;

import java.util.List;

/**
 * @Auther: family
 * @Date: 2023/7/11 09:48
 * @Description:
 */
public interface SpuManageService {
    /**
     * 分页查询
     *
     * @param pageParam
     * @param spuInfo
     * @return
     */
    IPage<SpuInfo> getSpuInfoPage(Page<SpuInfo> pageParam, SpuInfo spuInfo);

    /**
     * 获取销售属性
     *
     * @return
     */
    List<BaseSaleAttr> getBaseSaleAttrList();

    /**
     * 添加SPU
     *
     * @param spuInfo
     */
    void saveSpuInfo(SpuInfo spuInfo);

}
